package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 雪花生成器的配置属性类
 */
@Data
@Component
@ConfigurationProperties(value = "id-worker.config")
public class IdWorkProperties {

    //机器I
    private long workerId;
    //机房ID
    private long datacenterId;

}
